var show_ad_url = "http://ads.op-networks.net/ads.php?";
window.op_ad_url= show_ad_url;
window.op_ad_url+="client="+escape(window.op_ad_client);
a = window;
function setURLParameter(b,av)
{
    if(b&&av)window.op_ad_url+="&"+b+"="+av		    
}
function encodeURL(b)
{
    if(typeof encodeURIComponent=="function")
    	return encodeURIComponent(b);
    else 
    	return escape(b)
}
setURLParameter("slotname",a.op_ad_slot);	
setURLParameter("format",a.op_ad_width +"x"+a.op_ad_height);
setURLParameter("refurl",encodeURL(document.URL));	

var c=a.screen,e=new Date,d=-e.getTimezoneOffset();

if(c)
{		
    setURLParameter("u_h",c.height);
    setURLParameter("u_w",c.width);
    setURLParameter("u_ah",c.availHeight);
    setURLParameter("u_aw",c.availWidth);
    setURLParameter("u_cd",c.colorDepth);
}
setURLParameter("dt",e.getTime()); 
setURLParameter("u_tz",d);
setURLParameter("u_his",history.length);		    
setURLParameter("u_java",navigator.javaEnabled());

if(navigator.plugins)setURLParameter("u_nplug",navigator.plugins.length); 
if(navigator.mimeTypes)setURLParameter("u_nmime",navigator.mimeTypes.length) 


function getFlashVersion()
{
    if(navigator.plugins&&navigator.mimeTypes.length)
    {
        var b=navigator.plugins["Shockwave Flash"];
        if(b&&b.description)return b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".");
    }
    else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0)
    {
        var a=3,c=1;
        while(c)
        try
        {
            c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+(a+1));
            a++;
        }
        catch(e)
        {
            c=null;
        }
        return a.toString();
    }
    else if(navigator.userAgent.toLowerCase().indexOf('msie')!=-1&&!window.opera)
    {
        var c=null;
        try
        {
            c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
        }
        catch(e)
        {
            var a=0;
            try
            {
                c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
                a=6;
                c.AllowScriptAccess="always";
            }
            catch(e)
            {
                if(a==6)
                	return a.toString();
            }
            try
            {
                c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
            }
            catch(e)
            {
            }
        }
        if(c!=null)
        {
            var a=c.GetVariable("$version").split(" ")[1];
            return a.replace(/,/g,".");
        }
    }
    return "0";
}

setURLParameter("flash",getFlashVersion());


document.write('<iframe name="op_ads_frame" width="'+window.op_ad_width+'" height="'+window.op_ad_height+'" frameborder="0" src="'+window.op_ad_url+'" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">');
document.write("</iframe>");	

